package LawsonTransformJava.xref;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class AddToDate {

  public static void main(String[] args) {
	    String todayx=null;
		DateFormat sdf = new SimpleDateFormat("yyyyMMdd");
	    Date today=null;
		Calendar c = Calendar.getInstance();
		c.setTime(today);
		c.add(Calendar.DATE, -1); 
		todayx=sdf.format(c.getTime());

  }
}
/*
Current date : 2-20-2009
date after one day : 2-21-2009
*/